package com.xd.cloud.service.core;

import com.xd.cloud.dao.core.UserDataAuthorityDao;
import com.xd.cloud.entity.core.UserDataAuthority;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author wangtao
 * @class_name UserDataAuthorityService
 * @description 用户与数据权限Service层
 * @create 2017/12/27
 */
@Service
public class UserDataAuthorityService {
    @Autowired
    private UserDataAuthorityDao userDataAuthorityDao;

    public void save(UserDataAuthority userDataAuthority){
        userDataAuthorityDao.save(userDataAuthority);
    }

    public Integer delUserDataAuthorityByUserId(Integer id) {
        return userDataAuthorityDao.delUserDataAuthorityByUserId(id);
    }
}
